import { IFeidaoAiWeappPage } from '@dfeidao/wxapp/interfaces';
import navigate_to from '@dfeidao/atom-wxapp/api/navigation/navigate-to';
import remove from '@dfeidao/atom-wxapp/global/remove';
import global_set from '@dfeidao/atom-wxapp/global/set';

export default async function a003(fd: IFeidaoAiWeappPage, e: {
	currentTarget: {
		id: string;
	};
}) {
	remove('search_criteria');
	remove('search_info');
	global_set('com_type', 'type');

	const commodity_no = e.currentTarget.id;

	navigate_to(`/pages/app-commodity-del/app-commodity-del?commodity_no=${commodity_no}`);
}
